package com.jier.entities;

import tk.mybatis.mapper.annotation.Version;

import javax.persistence.Table;
import java.io.Serializable;

/**
 * 用户数据对象
 *
 * @author Administrator
 * @date 2016/8/22
 */
@Table(name = "user")
public class User extends BaseEntity implements Serializable {
    private String name;

    private Integer age;

    private Integer sex;

    @Version
    private Integer version;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
